export default {
  namespaced: true,
  state: {
    tabList: [
      { title: '首页', icon: 'home', activeIcon: 'home-fill', url: '/pages/index/index' },
      { title: '任务', icon: 'list', activeIcon: 'list', url: '/pages/task/task' },
      { title: '扫码', isScan: true, url: '/pages/scan/scan' },
      { title: '消息', icon: 'chat', activeIcon: 'chat-fill', url: '/pages/message/message' },
      { title: '我的', icon: 'account', activeIcon: 'account-fill', url: '/pages/profile/profile' }
    ],
    currentTab: 0
  },
  mutations: {
    setCurrentTab(state, index) {
      state.currentTab = index
    },
    setTabList(state, list) {
      state.tabList = list
    }
  }
} 